'''
Created on Oct 1, 2011

@author: haddaway
'''
import unittest
from springpython.context import ApplicationContext
from springpython.config import YamlConfig

class Test(unittest.TestCase):


    def setUp(self):
        self.container = ApplicationContext(YamlConfig("app-context.xml"))
        deviceManager = self.container.get_object("deviceManager")
        deviceManager.startTime = 99

    def tearDown(self):
        pass


    def testDependencyInjection(self):
        deviceManager = self.container.get_object("deviceManager")
        self.assertEqual(deviceManager.startTime, 99)

if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testName']
    unittest.main()